import service from '@/utils/request'

const TenantApi = {
  addTenant: function (data) {
    return service.post('sysTenant', data)
  },
  getTenant: function (data) {
    return service.get('sysTenant', {params:data})
  },
  deleteTenant: function (data) {
    return service.put('sysTenant/delete', data)
  },
  editTenant: function (data) {
    return service.put('sysTenant', data)
  },
  listTenant: function (data) {
    return service.get('sysTenant/page', {params: data})
  },
  listTenantIdName:function (data) {
    return service.get('sysTenant/page', {params: data})
  },
  listByDomainName:function (data) {
    return service.get('sysTenant/listByDomainName', {params: data})
  },
  listIdName:function (data) {
    return service.get('sysTenant/listIdName', {params: data})
  },
}

export default TenantApi
